/**
 * Created by coder on 2016/3/28.
 */
'use strict'
let models = require('../models');
let errors = require('../../config/errors');

let Term = models.Term;
let TermDao = models.TermDao;

function addTerm(term){
    if(!term){
        return;
    }
    let newterm = new Term(term);

    TermDao.create(newterm);
    return newterm;
}

module .exports = {
    addTerm
};